<%-- 
    Document   : habitacionAbm
    Created on : 30/09/2012, 12:14:54
    Author     : Luciana
--%>

<%@page import="org.apache.jasper.tagplugins.jstl.core.Import"%>
<%@page import= "java.util.Calendar" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/style2.css" media="screen" />

        <title>Alta de Habitaciones</title>
    </head>
    <body>
     <h1>Nueva Habitacion</h1>
     
         <center>
       <div id="stylized" class="myform">
           
           
           <html:form action="/habitacionAbm.do" onsubmit="return validateHabitacionAbmForm(this);">
            <html:javascript formName="habitacionAbmForm"/>
            <html:hidden property="event"/>
            <html:hidden property="habitacionId"/>
            <html:hidden property="fechaCreacion"/>
            <html:hidden property="fechaModificacion"/>
              <table>   
            <tr>
                <td><bean:message key="habitacion.form.numeroHabitacion"/></td>
                <td><html:text property="numeroHabitacion"/></td>
            </tr>
            <tr>
                <td><bean:message key="habitacion.form.estado"/></td>
                <td><html:select property="estado" >
                        <html:option value=""><---></html:option>
                        <html:option value="LIBRE">Libre</html:option>
                        <html:option value="RESERVADA">Reservada</html:option>
                        <html:option value="OCUPADA">Ocupada</html:option>
                    </html:select>
                </td>
            </tr>
            <tr>
                <td><bean:message key="habitacion.form.categoriaId"/></td>
                
                <td><html:select  property="categoriaId" >
                        <html:option value="<--->"><---></html:option>
                        <html:optionsCollection property="categorias" value="categoriaId" label="descripcion"/>
                    </html:select></td>
               
            </tr>
            <tr>
              <td><bean:message key="habitacion.form.tipoHabitacionId"/></td>
                <td><html:select  property="tipoHabitacionId" >
                        <html:option value="<--->"/>
                        <html:optionsCollection property="tipoHabitaciones" value="tipoHabitacionId" label="descripcion"/>
                    </html:select></td>
            </tr>
             <tr>
                <td><bean:message key="habitacion.form.numeroPiso"/></td>
                <td><html:text property="numeroPiso"/></td>
            </tr>
             <tr>
                 <td></td>
                <td><html:submit value="Guardar"/></td>
            </tr>           
              </table>
            <div class="spacer"></div>   
        </html:form> 
       </div>
              </center>  
    </body>
</html>
